package com.thread.worker_thread;

/**
 * @author leon(liangzou0318@gmail.com)
 * @date 2012-10-20
 * @filaname WorkThread.java
 */
public class WorkThread extends Thread{
private final Channel channel;
//private String name;
public WorkThread(String name,Channel channel){
	super(name);
	this.channel=channel;
}
public void run(){
	while(true){
		Request request =channel.takeRequest();
		request.execute();
	}
}
}
